import jaydebeapi
url = 'jdbc:phoenix:10.150.27.213:2181:/hbase-unsecure'
# url = 'jdbc:phoenix:10.2.111.14,10.2.111.56,10.2.111.60:2181:/hbase-unsecure'
jar = 'C:\Program Files\squirrel-sql-snapshot-20180404_2309\lib\phoenix-4.9.0-HBase-1.1-client.jar'
# jar = 'C:\Program Files\squirrel-sql-snapshot-20180404_2309\lib\phoenix-4.4.0.2.3.4.0-3485-client.jar'
# jar = '/home/aibox/lib/phoenix-4.9.0-HBase-1.1-client.jar'
connection = jaydebeapi.connect('org.apache.phoenix.jdbc.PhoenixDriver',
                                    [url, None, None], jar)
print('ok')